package com.shen.server.config;

/**
 * Created by HMF on 2021/08/14 22:45
 */

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * MyBatis分页配置（分页插件配置）
 */
@Configuration
public class MyBatisPlusConfig {
    /**
     * 分页插件
    * @date: 2022/4/21
    * @return
    */
    @Bean
    public PaginationInterceptor paginationInterceptor(){
        return new PaginationInterceptor();
    }

}
